package com.online_video.entity;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 黄金星
 * @Date: 2022/03/21/下午12:48
 * @Description:
 */
public class Comment {
    private Integer id;
    //视频id
    private Integer vid;
    //用户id
    private Integer u_id;
    //评论内容
    private String comment;
    //评论日期
    private String date;

    private String headportrait;
    private String nickname;

    public Comment(Integer id, Integer vid, Integer u_id, String comment, String date, String headportrait, String nickname) {
        this.id = id;
        this.vid = vid;
        this.u_id = u_id;
        this.comment = comment;
        this.date = date;
        this.headportrait = headportrait;
        this.nickname = nickname;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getHeadportrait() {
        return headportrait;
    }

    public void setHeadportrait(String headportrait) {
        this.headportrait = headportrait;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", vid=" + vid +
                ", u_id=" + u_id +
                ", comment='" + comment + '\'' +
                ", date='" + date + '\'' +
                ", headportrait='" + headportrait + '\'' +
                ", nickname='" + nickname + '\'' +
                '}';
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getVid() {
        return vid;
    }

    public void setVid(Integer vid) {
        this.vid = vid;
    }

    public Integer getU_id() {
        return u_id;
    }

    public void setU_id(Integer u_id) {
        this.u_id = u_id;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Comment(Integer id, Integer vid, Integer u_id, String comment, String date) {
        this.id = id;
        this.vid = vid;
        this.u_id = u_id;
        this.comment = comment;
        this.date = date;
    }

    public Comment() {
    }
}
